/**
* @Title: ModuleServiceImp.java   
* @Copyright 2010 -2013 CreativeWise
* @Package com.cwises.service.system.module   
* @Description: 模块管理  
* @author wangxinmin    
* @date 2013-12-23 下午1:16:17   
* @version V1.0 
*/
package com.cwises.service.system.module;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cwises.dao.system.module.ModuleDaoImpl;
import com.cwises.entity.system.module.ModuleManager;
import com.cwises.entity.system.user.UserInfoManager;
import com.orm.AbstractBaseEntityOperation;
import com.orm.IBaseEntityOperation;

/**
 * @ClassName: ModuleServiceImp
 * @Description: 模块管理
 * @author wangxinmin
 * @date 2013-12-23 下午1:16:17
 *
 */
@Service("moduleServiceImp")
@Transactional
public class ModuleServiceImp  extends AbstractBaseEntityOperation<ModuleManager> implements IModuleService{
	
	@Resource(name = "moduleDaoImpl")
	private ModuleDaoImpl dao;
	
	@Override
    public IBaseEntityOperation<ModuleManager> getDao() {
        return dao;
    }

	/**
	 * 获取登陆人权限内的菜单列表
	 */
	public List<ModuleManager> getAllModulesForUser(UserInfoManager userInfoManager){
		return dao.findByCondition("getAllModulesForUser", userInfoManager);
	}

}
